<!DOCTYPE html>
<html>
<head>
	<title></title>

      	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>

		  <script>
	      var app = angular.module('myApp', []);
	      app.controller('myCtrl', function($scope, $http, $window) {
	      	  console.log("hello");
	          $http({
	            method : "GET",
	            headers:{  
	                        "authorization": "Bearer " + $window.localStorage["org1token"],
	                     "Accept":"application/json",
	                      "content-type":"application/json"
	                    },   
	            url:"http://localhost:4000/channels/mychannel?peer=peer1",
	          }).then(function mySuccess(response) {
	              
	              console.log(response.data);

	                     // var r=JSON.parse(response.data[0]);

	                $scope.myData = response.data;
	            })
	        
	      });
	      </script>

</head>
<body ng-app="myApp" ng-controller="myCtrl">


<center>
	
<h1>Block height: </h1>
<h1>Block hash: </h1>

</center>

</body>
</html>